package com.hyh.ad.common.core.domain.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import lombok.Data;

import java.sql.Timestamp;

/*
 * 系统菜单实体类
 */

@Data
public class SysMenu extends BaseEntity {

    /*
     * 主键 id
     */
    @TableId(type = IdType.ID_WORKER)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /*
     * 菜单名称
     */
    private String menuName;

    /*
     * 菜单状态
     */
    private String status;

    /*
     * 菜单是否可见
     */
    private String visible;

    /*
     * 菜单权限标识
     */
    private String permission;

    /*
     * 父菜单id
     */
    private Long parentId;

    /*
     * 显示顺序
     */
    private Integer orderNum;
}
